package cn.flexui.flexuiserver.service;

import cn.flexui.flexuiserver.domain.entity.ChatRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ai.chat.client.ChatClient;

import java.util.List;

/**
 * <p>
 * 对话记录 服务类
 * </p>
 *
 * @author apeto
 * @since 2024-09-17 07:08:21
 */
public interface ChatRecordService extends IService<ChatRecord> {

    List<ChatRecord> selectRequestId(String requestId);

    void userChatRecord(ChatClient.PromptUserSpec consumer, String message, String fileIds, String requestId, long userId);

    void assistantChatRecord(String requestId, long userId, StringBuilder builder);
}
